/*
 * filetrans.h
 *
 *  Created on: May 4, 2012
 *      Author: root
 */

#ifndef FILETRANS_H_
#define FILETRANS_H_


static ft_info *recv_ft, *send_ft;
static int filesendID=0;
static int filerecvID=0;

pthread_mutex_t recvid_mutex = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t sendid_mutex = PTHREAD_MUTEX_INITIALIZER;

pthread_mutex_t ft_recvlist_mutex = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t ft_sendlist_mutex = PTHREAD_MUTEX_INITIALIZER;

pthread_mutex_t ft_sendfreeList_mutex = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t ft_recvfreelist_mutex = PTHREAD_MUTEX_INITIALIZER;





#endif /* FILETRANS_H_ */
